package com.xg.common.constant;

import lombok.Getter;

public enum CommonStatusEnum {
    /**
     * 1500 - 1600
     */
    CAR_EMPTY(1500,"购物车为空"),
    SUCCESS(1,"success"),
    ERROR(0,"error"),
    BRAND_DELETE_ERROR(1200,"品牌删除失败"),
    BRAND_INFO_ERROR(1300,"单个品牌查询失败"),
    BRAND_SAVE_ERROR(1400,"品牌保存失败"),
    SERIES_DELETE_ERROR(1600,"车系删除失败"),
    SERIES_INFO_ERROR(1701,"车系查询失败"),
    SERIES_SAVE_ERROR(1801,"车系保存失败"),
    USED_CAR_SAVE_ERROR(1901,"二手车提交保存失败"),
    USED_CAR_DELETE_ERROR(1902,"二手车删除失败"),
    USED_CAR_INFO_ERROR(1903,"二手车查询信息失败"),
    USED_CAR_AUDIT_ERROR(1903,"二手车信息审核失败"),
    TYPE_SAVE_ERROR(2901,"车型保存失败"),
    TYPE_DELETE_ERROR(2902,"车型删除失败"),
    TYPE_INFO_ERROR(2903,"车型查询信息失败"),

    VERIFICATION_CODE_ERROR(2904,"验证码错误"),
    VERIFICATION_CODE_NOT_EXISTS(2905,"验证码已过期"),

    /**
     * 订单提示 1000 - 1099
     */
    ORDER_CREATE_EXCEPTION(1000,"订单重复提交"),

    ;
    @Getter
    private int code;

    @Getter
    private String msg;

    CommonStatusEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
